|
|
 |
|
|
|
|
End If
End Sub |
|
|
|
|
|
|
|
|
Note that transformation matrices representing perspective transformations do not contain 0, 0, 0, 1 in their final columns. To work with these matrices, you must use routines that take this into account. To apply such a transformation to a point, use subroutine m3ApplyFull rather than m3Apply. To multiply such a matrix by another matrix, use subroutine m3MatMultiplyFull rather than subroutine m3MatMultiply. |
|
|
|
|
|
|
|
|
Remembering the definitions for all of the kinds of projection can be quite difficult. Table 13.4 summarizes the projections described in the previous sections. The names of the projections are indented to show how the classifications relate. For example, the entry for parallel projection is indented to show that it is one kind of planar geometric projection. |
|
|
|
|
|
|
|
|
The equations for perspective projection work equally well for points that lie between the plane of projection and the center of projection and for points that lie behind the plane of projection. This makes it a little easier to specify the plane of projection. You can place it anywhere in front of, behind, or even inside the object you are viewing, and the projection will produce reasonable results. |
|
|
|
|
| Table 13.4 Summary of Projection Types | | TYPE OF PROJECTION | DESCRIPTION | | Planar Geometric | Projectors start at a center of projection and pass through the object to a plane of projection. |  |
|
|
|
|
Parallel |
|
|
|
| Projectors are parallel. You can think of the center of projection as being infinitely far away. |  |
|
|
|
|
Orthographic |
|
|
|
| Projectors are perpendicular to the plane of projection. |  |
|
|
|
|
Axonometric |
|
|
|
| Projectors are not parallel to the X, Y, or Z axis. |  |
|
|
|
|
Isometric |
|
|
|
| Direction of projection makes equal angles with all three coordinate axes. |  |
|
|
|
|
Oblique |
|
|
|
| Plane of projection is perpendicular to a coordinate axis. Projectors are not perpendicular to the plane of projection. |  |
|
|
|
|
Cavalier |
|
|
|
| Projectors meet plane of projection at a 45-degree angle. |  |
|
|
|
|
Cabinet |
|
|
|
| Projectors meet plane of projection at an angle of Atn(2). | | Perspective | Projectors pass through a center of projection. |
|
|
|